﻿using System;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Forms;

namespace YioksPlanEditor
{
    public partial class FormUnity : Form
    {
        [DllImport("UnityPlayer.dll",EntryPoint = "UnityMain")]
        private static extern int UnityMain(int hInst, int hPrev,short sCmdLine, int nCmdShow);
        public FormUnity()
        {
            InitializeComponent();
            //Size = new Size(SystemInformation.WorkingArea.Width, SystemInformation.WorkingArea.Height);
        }

        private void FormUnity_Shown(object sender, EventArgs e)
        {

        }

        private void FormUnity_Load(object sender, EventArgs e)
        {
            //Visible = false;
            UnityMain(Handle.ToInt32(), 0, 0, 1);
        }

    }
}
